import request from '@/utils/request'

//查询所有检查项目，要项目种类
export  function cexpenseSort() {
  return request({
    url:'system/cexpense/getCexpenseSort',
    method: 'get'
  })
}

// 分页查询检查项目
export function listCexpense(query) {
  return request({
    url: '/system/cexpense/getList',
    method: 'get',
    params: query
  })
}


//查询所有检查项目费用的详细信息
export  function getAllCexpenses() {
  return request({
    url:'system/cexpense/getAllCexpenses',
    method: 'get'
  })
}



// 新增用户
export function addCexpense(data) {
  return request({
    url: '/system/cexpense/add',
    method: 'post',
    data: data
  })
}

// 查询指定用户详细信息
export function getCeById(scId) {
  return request({
    url: '/system/cexpense/getCeById/' + scId,
    method: 'get'
  })
}

// 修改用户
export function updateCexpense(data) {
  return request({
    url: '/system/cexpense/update',
    method: 'put',
    data: data
  })
}

// 删除用户
export function delCexpense(scIds) {
  return request({
    url: '/system/cexpense/remove/' + scIds,
    method: 'delete'
  })
}








